package com.walter.model.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * exam Created by ch on 2019-07-03.
 * FOR:
 */
@Data
@Accessors(chain = true)
public class LoginForm {
    @ApiModelProperty("用户名")
    @NotNull(message = "用户名不能为空")
    @Length(min = 1,message = "用户名不能为空串")
    private String userName;

    @ApiModelProperty("密码")
    @NotNull(message = "密码不能为空")
    @Length(min = 1,message = "密码不能为空串")
    private String password;

}
